import java.util.Scanner;



public class Methods {

	static void printMatrix(int[][] matrix){
		for (int i = 0; i < matrix.length; i++) {
			System.out.println();
			for (int j = 0; j < matrix[0].length; j++) {
				System.out.print(matrix[i][j]+" ");
			}
		}
		
	}
	
	static int[][] createMatrix(){
		
		Scanner scanner = new Scanner(System.in);
		System.out.println("Vyvedete broi redove");
		int row = scanner.nextInt();
		System.out.println("Vyvedete koloni");
		int col = scanner.nextInt();
		int[][] matrix = new int[row][col];
		
		
		for (int i = 0; i < row; i++) {
			for (int j = 0; j < col; j++) {
				matrix[i][j] = scanner.nextInt();
			}
		}
		
		return matrix;
	}
	
	
	
	public static void main(String[] args) {
	int[][] matrixTest = createMatrix();
	printMatrix(matrixTest);
	
	
	}


}
